package com.lotus.tep.ui;

import com.lotus.tep.constant.EPaperConstants;
import javax.swing.JDesktopPane;
import javax.swing.JFrame;

public class FrameBuilder {

	public JFrame newBrowserFrame() {
		JFrame frame = new JFrame(EPaperConstants.BROWSER_TITLE);
		frame.setLocationByPlatform(true);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setContentPane(new JDesktopPane());
		BrowserEmbededFrame bef = new BrowserEmbededFrame();
		bef.build();
		frame.getContentPane().add(bef);
		SpeechControlPanelFrame scpf = new SpeechControlPanelFrame();
		scpf.build();
		frame.getContentPane().add(scpf);
		return frame;
	}
}
